package com.isoftstone.storage.events;

import java.util.EventObject;

import com.isoftstone.storage.Storage;

/**
 * storage事件
 */
public class StorageEvent extends EventObject {
	private static final long serialVersionUID = -8111192578087733602L;
	/**
	 * 事件发生时间
	 */
	protected long timestamp;

	public StorageEvent(final Storage source) {
		super(source);
	}

	public Storage getStorage() {
		return (Storage) getSource();
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(final long timestamp) {
		this.timestamp = timestamp;
	}
}
